/*
 * ExtentQueryHistory.h
 *
 *  Created on: Dec 16, 2011
 *      Author: Netali
 */

#ifndef LUNTOTALSTATISTICS_H_
#define LUNTOTALSTATISTICS_H_

#include "Lun.h"
#include "LunTimeStatistics.h"
#include <iostream>

using namespace std;

class LunTotalStatistics{
	Lun* my_lun;
	map<int,LunTimeStatistics*>* my_stats;

public:
	LunTotalStatistics(){
		my_stats = new map<int,LunTimeStatistics*>();
	};
	LunTotalStatistics (Lun* l) {
		my_lun = l;
		my_stats = new map<int,LunTimeStatistics*>();
	};
	virtual ~LunTotalStatistics();
	void addLunTimeStatistics(LunTimeStatistics* l);
	LunTimeStatistics* getLunTimeStatistics(int time);
	map<int,LunTimeStatistics*>* getAllLunTimeStatistics();
	Lun* getLun();
	string tostring();
	LunTimeStatistics* getTimeStats(int t);
	void startOver();

};
#endif	/* LUNTOTALSTATISTICS_H_ */
